﻿@using Abc.Core;
@using Abc.Core.Entities;
@using Abc.Application;
@model Abc.Application.HtAdminServices.HtLocalizationOut;


@{
    ViewData["Title"] = "全球化和本地化";
}



<section class="panel panel-padding">
    <div class="layui-tab layui-tab-brief" lay-filter="TabBrief_Localization">

        <form class="layui-form" action="" id="from_Localization">
               <input type="hidden" asp-for="Id" />
          
               <table class="layui-table">
                <tbody>
<tr>
                        <td width="200px;">标题类型(同一个类型，唯一)</td>
                        <td>
                       
                            <input  asp-for="Title" lay-verify="Title" autocomplete="off" placeholder="请输入标题类型(同一个类型，唯一)" class="layui-input">
                        </td>
                    </tr>
<tr>
                        <td width="200px;">备注</td>
                        <td>
                       
                            <textarea class="layui-textarea" asp-for="Remark"  lay-verify="required|remark"></textarea>
                        </td>
                    </tr>
                    @*
                       <textarea placeholder="请输入内容" class="layui-textarea"></textarea>
                       <input type="radio" name="sex" value="男" title="男" checked="">
                       <input type="radio" name="sex" value="女" title="女">
                       <input type="radio" name="sex" value="禁" title="禁用" disabled="">
                    *@
                    <tr>
                        <td></td>
                        <td>
                            <div class="layui-btn submitbtn" lay-submit lay-filter="submit">立即提交</div>
                            <div class="layui-btn layui-btn-danger closewindow">关闭窗口</div>
                            <div class="layui-btn layui-btn-danger refreshwindow">重新加载</div>
                        </td>
                    </tr>

                </tbody>
            </table>



        </form>
    </div>
</section>


@section Scripts{
     <script>
         layui.define(['element',  'jquery', 'form'], function () {
             let  $ = layui.jquery;
             let  form = layui.form;
             let  element = layui.element;
             
             abc.infoInit();
             //提交
             form.on('submit(submit)', function (obj) {
                 //obj.field.IsEnable=$('#IsEnable').is(':checked');
                 //obj.field.Remark = Remark.getContent();
                 abc.post({ url: '@(Url.Action("Edit", new { area = "HtAdmin" }))', data: obj.field
                    //,submitbtn:'submitbtn' //提交的按钮
                    //,isAutoEnableBtn:false //不自动启用按钮
                    //,IsSuccessCloseWindow:false //不关闭
                 });
                
                 return false;
             });
            
             
         });
     </script>
}

